package webEquipeRechercheGwt.client.callback.consultation;

import java.util.Collection;

import webEquipeRechercheGwt.client.callback.consultation.commands.CommandGetAllTeams;
import webEquipeRechercheGwt.client.entityMirror.TeamMirror;

import com.google.gwt.user.client.rpc.AsyncCallback;

public class CallBackGetAllTeam implements AsyncCallback<Collection<TeamMirror>> {

	private CommandGetAllTeams cmd;
	
	public CallBackGetAllTeam(CommandGetAllTeams cmd) {
		this.cmd = cmd;
	}

	@Override
	public void onFailure(Throwable caught) {
		// TODO Auto-generated method stub
	}

	@Override
	public void onSuccess(Collection<TeamMirror> result) {
		cmd.execute(result);
	}

}
